package com.youge.springbootdubboprovider;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 1.导入依赖
 * 	1)导入dubbo-starter
*  *       <dependency>
 *             <groupId>org.apache.dubbo</groupId>
 *             <artifactId>dubbo-spring-boot-starter</artifactId>
 *             <version>2.7.8</version>
 *         </dependency>
 * 	2)导入dubbo其它依赖 zookeeper注册中心
 * 		 <dependency>
 *             <groupId>org.apache.dubbo</groupId>
 *             <artifactId>dubbo-dependencies-zookeeper</artifactId>
 *             <version>2.7.8</version>
 *             <type>pom</type>
 *             <exclusions>
 *                 <exclusion>
 *                     <groupId>org.slf4j</groupId>
 *                     <artifactId>slf4j-log4j12</artifactId>
 *                 </exclusion>
 *             </exclusions>
 *         </dependency>
 *  3)配置,详情见配置文件 application.properties
 *
 *  4)注解
 *     . @DubboService //暴露服务
 *     . @EnableDubbo //开启基于dubbo注解的功能
 *     . @DubboReference //引用
 *
 *
 */
@EnableDubbo //开启基于dubbo注解的功能
@SpringBootApplication
public class SpringbootDubboProviderApplication {

	public static void main(String[] args) {
		SpringApplication.run(SpringbootDubboProviderApplication.class, args);
	}

}
